package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.TeacherModuleTaskFile;
import com.aizhixin.lab.project.course.entity.TeacherTaskWorkOrder;
import com.aizhixin.lab.project.template.entity.TaskWorkOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherTaskWorkOrderRepository extends JpaRepository<TeacherTaskWorkOrder,String> {
    List<TeacherTaskWorkOrder> findByTaskIdAndDeleteFlagOrderByWorkOrderNo(String taskId, Integer deleteFlag);
    List<TeacherTaskWorkOrder> findByTaskIdInAndDeleteFlagOrderByWorkOrderNo(List<String> taskId, Integer deleteFlag);
    Integer countByTaskIdAndDeleteFlag(String taskId,Integer deleteFlag);
    TeacherTaskWorkOrder findByWorkOrderNameLikeIgnoreCaseAndDeleteFlagAndCreatedBy(String workOrderName,Integer deleteFlag,Long createBy);
}
